package com.system.vo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * 员工表
 * author:wucl
 * table:sys_staff
 */
public class SysStaffVO implements Serializable{

    private static final long serialVersionUID = -2402875532273175771L;

    private String staffId;// 员工编号
    private String staffName;// 员工姓名
    private String staffPsw;// 密码
    private Integer state;// 状态0禁用1正常
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date staffCreateTime;// 创建时间/入职日期
    private String insertId;// 创建人
    private Set<String> roles;// 拥有的角色列表
    private String staffOrgName;// 所属部门名称
    private String orgId ;//所属部门ID
    private List<SysRoleVO> staffRoles; //员工角色列表
    private SysRoleVO role; //当前登陆的角色
    private String roleId; //当前登陆角色ID
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date staffLastLogin;//最后登录日期

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getStaffPsw() {
        return staffPsw;
    }

    public void setStaffPsw(String staffPsw) {
        this.staffPsw = staffPsw;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getStaffCreateTime() {
        return staffCreateTime;
    }

    public void setStaffCreateTime(Date staffCreateTime) {
        this.staffCreateTime = staffCreateTime;
    }

    public String getInsertId() {
        return insertId;
    }

    public void setInsertId(String insertId) {
        this.insertId = insertId;
    }

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }

    public List<SysRoleVO> getStaffRoles() {
        return staffRoles;
    }

    public void setStaffRoles(List<SysRoleVO> staffRoles) {
        this.staffRoles = staffRoles;
    }

    public SysRoleVO getRole() {
        return role;
    }

    public void setRole(SysRoleVO role) {
        this.role = role;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getStaffOrgName() {
        return staffOrgName;
    }

    public void setStaffOrgName(String staffOrgName) {
        this.staffOrgName = staffOrgName;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public Date getStaffLastLogin() {
        return staffLastLogin;
    }

    public void setStaffLastLogin(Date staffLastLogin) {
        this.staffLastLogin = staffLastLogin;
    }
}
